package com.sky.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateEmplyeeDTO extends AddEmplyeeDTO{
    @NotNull(message = "id不能为空")
    @Min(value = 1, message = "id必须大于0的整数")
    private Long id;
}
